#include <stdio.h>

//冒泡排序
int main(int argc, char const *argv[])
{
	int array[10] = {2,3,4,1,5,9,6,7,11,10};
	for (int i = 0; i < 10; ++i)
	{
		for (int j = 0; j < 9-i; ++j)
		{
			if(array[j]>array[j+1]){
				int temp = array[j];
				array[j] = array[j+1];
				array[j+1] = temp;
			}
		}
	}
	for (int i = 0; i < 10; ++i)
	{
		printf("%d ",array[i] );
	}
	return 0;
}